package org.lgiavedoni.android.franq.util.googe;

import org.lgiavedoni.android.franq.core.position.Position;

public class MapsUtil {

	public static String getURL(Position position) {
		if (position.isUnknowLocation() && !position.isUnknowCell()) {
			GeocodingUtil.setLatLongFromCellId(position);
		}
		return getURL(position.getLatitude(), position.getLongitude());
	}

	public static String getURL(double latitude, double longitude) {
		return "http://maps.google.com/maps?q=" + latitude + "," + longitude + "&z=4";
	}

}
